from lib.api.Student import sm
from hytest import GSTORE


def suite_setup():
    ret = sm.add_student(username='dxs', realname='大学生', gradeid=1,
                         classid=GSTORE['七一班-id'], phonenumber='1234567')
    GSTORE['大学生-id'] = ret.json()['id']


def suite_teardown():
    sm.delete_student(studentid=GSTORE['大学生-id'])
